package com.xcity.game.task.condition;

import com.alibaba.fastjson.annotation.JSONField;
import com.xcity.game.item.ItemInfo;
import com.xcity.game.task.TaskCondition;
import com.xcity.game.task.TaskTemplate;

public class PVETaskCondition extends TaskCondition {

	protected int stageId;
	@JSONField(serialize = false)
	protected int star;
	@JSONField(serialize = false)
	protected ItemInfo drop;
	
	public PVETaskCondition(TaskTemplate template) {
		super(template);
		int[] conds = template.getConditions();
		stageId = conds[0];
		star = conds[1];
		if (conds.length > 3) {
			drop = new ItemInfo(conds[2], conds[3]);
		}
	}

	public int getStageId() {
		return stageId;
	}

	public void setStageId(int stageId) {
		this.stageId = stageId;
	}

	public int getStar() {
		return star;
	}

	public void setStar(int star) {
		this.star = star;
	}

	public ItemInfo getDrop() {
		return drop;
	}

	public void setDrop(ItemInfo drop) {
		this.drop = drop;
	}

	@Override
	public int toClientCond() {
		// TODO Auto-generated method stub
		return 0;
	}
	
}
